package org.mdrtwell.jdk15;

import java.util.EnumMap;

public class EnumMapDemo {
	enum Action {
		TURN_LEFT, TURN_RIGHT, SHOOT;
	}

	public static void main(String[] args) {
		EnumMap<Action, String> map = new EnumMap<Action, String>(Action.class);
		map.put(Action.TURN_LEFT, "����ת");
		map.put(Action.TURN_RIGHT, "����ת");
		map.put(Action.SHOOT, "���");
		for (Action action : Action.values()) {
			System.out.println(map.get(action));
		}
	}
}
